package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GoldExchangeLogMapper;
import com.ruoyi.system.domain.GoldExchangeLog;
import com.ruoyi.system.service.IGoldExchangeLogService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-28
 */
@Service
public class GoldExchangeLogServiceImpl implements IGoldExchangeLogService 
{
    @Autowired
    private GoldExchangeLogMapper goldExchangeLogMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public GoldExchangeLog selectGoldExchangeLogById(Long id)
    {
        return goldExchangeLogMapper.selectGoldExchangeLogById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param goldExchangeLog 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<GoldExchangeLog> selectGoldExchangeLogList(GoldExchangeLog goldExchangeLog)
    {
        return goldExchangeLogMapper.selectGoldExchangeLogList(goldExchangeLog);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param goldExchangeLog 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertGoldExchangeLog(GoldExchangeLog goldExchangeLog)
    {
        goldExchangeLog.setCreateTime(DateUtils.getNowDate());
        return goldExchangeLogMapper.insertGoldExchangeLog(goldExchangeLog);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param goldExchangeLog 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateGoldExchangeLog(GoldExchangeLog goldExchangeLog)
    {
        return goldExchangeLogMapper.updateGoldExchangeLog(goldExchangeLog);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteGoldExchangeLogByIds(Long[] ids)
    {
        return goldExchangeLogMapper.deleteGoldExchangeLogByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteGoldExchangeLogById(Long id)
    {
        return goldExchangeLogMapper.deleteGoldExchangeLogById(id);
    }
}
